package com.thunder.soft.vm;


import androidx.lifecycle.MutableLiveData;
import com.thunder.soft.common.base.BaseViewModel;


public class NotifyTestViewModel extends BaseViewModel {
    private static String TAG = NotifyTestViewModel.class.getName();
    public MutableLiveData<Integer> liveData = new MutableLiveData<>();

    public NotifyTestViewModel() {
    }

    public void onBackPressed() {
        getFinishActivity().postValue(1);
    }

    public void onItemClick(int index) {
        liveData.postValue(index);
    }

    public MutableLiveData<Integer> getLiveData() {
        return liveData;
    }
}
